Specifications
B-3
Cisco NAC Appliance - Clean Access Manager Configuration Guide
OL-28003-01
Appendix B API Support
Device Filter Operations
adminlogout
The adminlogout function logs out the administrator and invalidates the session.
Required In Parameters:
• op: adminlogout
Out Parameters: <!--error=mesg--> comment
• Success: mesg value of 0
• Failure: error string
Device Filter Operations
The following APIs perform operations on the CAM’s Device Filter List (devices which bypass the user
login requirement).
• addmac, page B-3
• removemac, page B-4
• checkmac, page B-4
• getmaclist, page B-5
• removemaclist, page B-5
• addsubnet, page B-6
• updatesubnet, page B-6
• removesubnet, page B-6
Note See also changeuserrole, page B-11.
addmac
The addmac function adds one or more MAC addresses to the Device Filters list.
Required In Parameters:
• op: addmac
• mac: Specifies an exact MAC address or a range.
Supported formats: 00:01:12:23:34:45 or 00:01:12:* or 00:01:12:23:34:45-11:22:33:44:55:66
Note If you do not use session-based authentication, the admin and passwd arguments are required. See
Authentication Requirements, page B-2.
Optional In Parameters:
• ip: Specifies an IPv4 address for an exact MAC address. If you use a wildcard or range to specify a
MAC address range, do not use the “ip” parameter. Supported format: 192.168.0.10
• type: Specifies one of the following strings: deny (default), allow, userole, check, or ignore.