example:
view testmib {
oid iso include;
}
community public {
authorization read-only;
}
community private {
view testmib;
authorization read-write;
}
[edit snmp]
//建立一個名為test的community並設定為read-only並允許X.X.X.X/X這段IP
switch# set community test authorization read-only clients X.X.X.X/X
//需要設定view參數才能夠set mib裡的值
switch# set view view_name oid iso include
public, private為default可用的,但不安全,建議自行定義community命名
最近在研究開關interface port,雖然ifAdminStatus預設為rw,但Juniper無法更改它的值阿!這是較困擾的一點…
其餘的一些設定參考:
http://www.juniper.net/techpubs/software/junos/junos64/swconfig64-net-mgmt/download/snmp-config.pdf