tables and commands

"Sergio Alves de Lima Junior" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Dear friends,

I'm writing tables to manipulate firewall (append, delete, change, inseting)
rules via SNMP and, I'm having some doubts:

1 - Is possible create a MIB Table with content all possible values for the
chain (rule)?
2 - Is possible save/change values settings via snmpset in file (in the
agent)?

Above, I'm put a sample MIB-table:

    filterINPUTTable    OBJECT-TYPE
        SYNTAX        SEQUENCE  OF  FilterINPUTEntry
        MAX-ACCESS    not-accessible
        STATUS        current
        DESCRIPTION    "Description"
        ::=  { fwptabFilterINPUT  1 }

    filterINPUTEntry    OBJECT-TYPE
        SYNTAX        FilterINPUTEntry
        MAX-ACCESS    not-accessible
        STATUS        current
        DESCRIPTION    "Row Description"
        INDEX        {  inputEntryIndex  }
        ::=  { filterINPUTTable 1 }

    FilterINPUTEntry  ::=  SEQUENCE {
        inputEntryIPSource  IpAddress,
        inputEntryIPDestination  IpAddress,
        inputEntryProtocol  OCTET STRING,
        inputEntrySrcPort  Integer32,
        inputEntryDstPort  Integer32,
        inputEntryTarget  OCTET STRING,
        inputEntryIface  RowStatus,
        inputEntryIndex  Integer32
        }


    inputEntryIPSource    OBJECT-TYPE
        SYNTAX            IpAddress
        MAX-ACCESS        read-write
        STATUS            current
        DESCRIPTION        "Column Description"
        ::=  {  filterINPUTEntry  1  }


    inputEntryIPDestination    OBJECT-TYPE
        SYNTAX            IpAddress
        MAX-ACCESS        read-only
        STATUS            current
        DESCRIPTION        "Column Description"
        ::=  {  filterINPUTEntry  2  }


    inputEntryProtocol    OBJECT-TYPE
        SYNTAX            OCTET STRING
        MAX-ACCESS        read-write
        STATUS            current
        DESCRIPTION        "Column Description"
        ::=  {  filterINPUTEntry  3  }


    inputEntrySrcPort    OBJECT-TYPE
        SYNTAX            Integer32
        MAX-ACCESS        read-write
        STATUS            current
        DESCRIPTION        "Column Description"
        ::=  {  filterINPUTEntry  4  }


    inputEntryDstPort    OBJECT-TYPE
        SYNTAX            Integer32
        MAX-ACCESS        read-write
        STATUS            current
        DESCRIPTION        "Column Description"
        ::=  {  filterINPUTEntry  5  }


    inputEntryTarget    OBJECT-TYPE
        SYNTAX            OCTET STRING
        MAX-ACCESS        read-only
        STATUS            current
        DESCRIPTION        "Column Description"
        ::=  {  filterINPUTEntry  6  }


    inputEntryIface    OBJECT-TYPE
        SYNTAX            OCTET STING
        MAX-ACCESS        read-create
        STATUS            current
        DESCRIPTION        "Column Description"
        ::=  {  filterINPUTEntry  7  }


    inputEntryIndex    OBJECT-TYPE
        SYNTAX            Integer32
        MAX-ACCESS        not-accessible
        STATUS            current
        DESCRIPTION        "Column Description"
        ::=  {  filterINPUTEntry  8  }

Regards.

[]s
-- 
//=====================================\
   Sergio Lima
   [email protected]
   Analista de Suporte
//=====================================\

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.