示例#1
0
 def rm_snmpgroup(self, client):
     try:
         obj = snmpgroup()
         obj.name = "snmp_grp"
         obj.securitylevel = "noAuthNoPriv"
         snmpgroup.delete(client, obj)
         print("rm_snmpgroup - Done")
     except nitro_exception as e:
         print("Exception::rm_snmpgroup::errorcode=" + str(e.errorcode) + ",message=" + e.message)
     except Exception as e:
         print("Exception::rm_snmpgroup::message=" + str(e.args))
示例#2
0
 def rm_snmpgroup(self, client):
     try:
         obj = snmpgroup()
         obj.name = "snmp_grp"
         obj.securitylevel = "noAuthNoPriv"
         snmpgroup.delete(client, obj)
         print("rm_snmpgroup - Done")
     except nitro_exception as e:
         print("Exception::rm_snmpgroup::errorcode=" + str(e.errorcode) +
               ",message=" + e.message)
     except Exception as e:
         print("Exception::rm_snmpgroup::message=" + str(e.args))
示例#3
0
 def add_snmpgroup(self, client) :
     try :
         obj = snmpgroup()
         obj.name = "snmp_grp"
         obj.securitylevel = snmpgroup.Securitylevel.noAuthNoPriv
         obj.readviewname = "tmp"
         snmpgroup.add(client,obj)
         print("add_snmpgroup - Done")
     except nitro_exception as e :
         print("Exception::add_snmpgroup::errorcode="+str(e.errorcode)+",message="+ e.message)
     except Exception as e:
         print("Exception::add_snmpgroup::message="+str(e.args))