Hi Andrew,

On 13/10/10 12:17 PM, Andrew Niemantsverdriet wrote:
> I am unable to find documentation on how to add a node to a category.
> I want to do something like this: /usr/local/pf/bin/pfcmd node add
> 00:01:02:03:04:05 status="reg",pid=1,category="My Category"
>
> Is it possible to add a node and have it end up in a category? What is
> the syntax?

The above should work but with 1.9.0 there was an issue with spaces so:

in 1.9.0:
/usr/local/pf/bin/pfcmd node add 00:01:02:03:04:05 
status="reg",pid=1,category="Printers"
should work (no space)

in 1.9.1:
/usr/local/pf/bin/pfcmd node add 00:01:02:03:04:05 
status="reg",pid=1,category="My Category"
should work (with space)

pfcmd can sometimes be very sensitive to shell expansion tricks, I've 
seen single quotes used in a way to improve this situation sometimes. 
For example:

/usr/local/pf/bin/pfcmd 'node add 00:01:02:03:04:05 
status="reg",pid=1,category="My Category"'

It should work, if it doesn't let me know and I'll investigate further.

Cheers!
-- 
Olivier Bilodeau
[email protected]  ::  +1.514.447.4918 *115  ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Packetfence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to