-
Account
-
passwd <username>
-
-
SNMP
-
cat SnmpConfPath_ | sed 's/^ (ro | rw)community <oldSnmpCommunity>/(ro | rw)community <snmpCommunity>/' > /tmp/snmpd.conf
-
cat SnmpConfPath_ | sed 's/^ (ro | rw)community [-_[:alnum:]]\\+/(ro | rw)community <snmpCommunity>/' > /tmp/snmpd.conf
-
grep -q '^ (ro | rw)community' /tmp/snmpd.conf || echo '(ro | rw)community <snmpCommunity> default .1' >> /tmp/snmpd.conf
-
cp -f /tmp/snmpd.conf <SnmpConfPath>
-
/usr/bin/bigstart restart snmpd
-